package com.roger.myHome.test;

import lombok.Builder;
import lombok.Getter;

import java.util.Collections;
import java.util.Comparator;

@Getter
@Builder
public class User {
    @Builder.Default
    private final String name = "王五";
    private final int age;
    private final String email;
    private final String address;
    private Integer id;



    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                ", address='" + address + '\'' +
                ", id=" + id +
                '}';
    }
}
